package 输入方案;

import java.util.Scanner;

/**
 * @author zc
 * @version 1.0
 * @date 2021/8/31 16:29
 */
//2.输入描述：输入矩阵行数和列数，输入矩阵
public class Demo05 {
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        int m = reader.nextInt();
        int n = reader.nextInt();

        int[][] arrays = new int[m][n];


        //输入
        for (int i = 0; i <m ; i++) {
            for (int j = 0; j < n; j++) {
                arrays[i][j]=reader.nextInt();
            }
        }
        reader.close();

        //输出
        for (int i = 0; i < m; i++) {
            for (int j = 0; j < n; j++) {
                System.out.print(arrays+" ");
            }
            System.out.println();
        }


    }
}
